#ifndef __USER_TASK_H_
#define __USER_TASK_H_



#pragma pack(1)

#define USER_TASK_PERIOD_EVENT              0x0001
#define USER_TASK_UPDATE_ALL_EVENT          0x0002
#define USER_TASK_WIFI_TROGGLE_EVENT        0x0004
#define USER_TASK_UNKNOWN_WIFI_EVENT        0x0008
#define USER_TASK_DISPLAY_PARAMS_EVENT      0x0010

typedef struct device_info
{
		unsigned char ph_value;
		unsigned char bright_state;
		unsigned char himidity;
		unsigned short temperature;
		unsigned int bright_value;
		unsigned char temp_unit_convert;
		unsigned char battery_state;
		unsigned char battery_percentage;
		unsigned char motor_ctrl;
		unsigned char light_ctrl;
}device_info_t;

extern device_info_t device_info;

extern void user_task_init(void);
extern void set_motor_state(unsigned char state);
extern void set_light_state(unsigned char state);
extern void lcd_display_wifi_status(unsigned char wifi_state);


#endif


